home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / etc / apparmor / logprof.conf next >
Text File  |  2008-10-08  |  4KB  |  132 lines

  1. # $Id: logprof.conf 1269 2008-05-30 08:21:15Z jrjohansen $
  2. # ------------------------------------------------------------------
  3. #
  4. #    Copyright (C) 2004-2006 Novell/SUSE
  5. #
  6. #    This program is free software; you can redistribute it and/or
  7. #    modify it under the terms of version 2 of the GNU General Public
  8. #    License published by the Free Software Foundation.
  9. #
  10. # ------------------------------------------------------------------
  11.  
  12. [settings]
  13.   profiledir = /etc/apparmor.d /etc/subdomain.d
  14.   inactive_profiledir = /usr/share/doc/apparmor-profiles/extras 
  15.   logfiles = /var/log/audit/audit.log /var/log/messages /var/log/syslog
  16.  
  17.   parser = /sbin/apparmor_parser /sbin/subdomain_parser
  18.   ldd = /usr/bin/ldd
  19.   logger = /bin/logger /usr/bin/logger
  20.  
  21.   # customize how file ownership permissions are presented
  22.   # 0 - off
  23.   # 1 - default of what ever mode the log reported
  24.   # 2 - force the new permissions to be user
  25.   # 3 - force all perms on the rule to be user
  26.   default_owner_prompt = 1
  27.  
  28.   # custom directory locations to look for #includes
  29.   #
  30.   # each name should be a valid directory containing possible #include
  31.   # candidate files under the profile dir which by default is /etc/apparmor.d.
  32.   #
  33.   # So an entry of my-includes will allow /etc/apparmor.d/my-includes to
  34.   # be used by the yast UI and profiling tools as a source of #include
  35.   # files.
  36.   custom_includes =
  37.  
  38.  
  39. [repository]
  40.   distro         = ubuntu-intrepid
  41.   url            = http://apparmor.test.opensuse.org/backend/api
  42.   preferred_user = ubuntu
  43.  
  44. [qualifiers]
  45.   # things will be painfully broken if bash has a profile
  46.   /bin/bash     = icnu
  47.   /bin/ksh    = icnu
  48.  
  49.   # these programs can't function if they're confined
  50.   /bin/mount    = u
  51.   /etc/init.d/subdomain = u
  52.   /sbin/cardmgr = u
  53.   /sbin/subdomain_parser = u
  54.   /usr/sbin/genprof = u
  55.   /usr/sbin/logprof = u
  56.   /usr/lib/YaST2/servers_non_y2/ag_genprof = u
  57.   /usr/lib/YaST2/servers_non_y2/ag_logprof = u
  58.  
  59.   # these ones shouln't have their own profiles
  60.   /bin/awk      = icn
  61.   /bin/cat      = icn
  62.   /bin/chmod    = icn
  63.   /bin/chown    = icn
  64.   /bin/cp       = icn
  65.   /bin/gawk     = icn
  66.   /bin/grep     = icn
  67.   /bin/gunzip   = icn
  68.   /bin/gzip     = icn
  69.   /bin/kill     = icn
  70.   /bin/ln       = icn
  71.   /bin/ls       = icn
  72.   /bin/mkdir    = icn
  73.   /bin/mv       = icn
  74.   /bin/readlink = icn
  75.   /bin/rm       = icn
  76.   /bin/sed      = icn
  77.   /bin/touch    = icn
  78.   /sbin/killall5 = icn
  79.   /usr/bin/find = icn
  80.   /usr/bin/killall = icn
  81.   /usr/bin/nice = icn
  82.   /usr/bin/perl = icn
  83.   /usr/bin/tr   = icn
  84.  
  85. [required_hats]
  86.   ^.+/apache(|2|2-prefork)$ = DEFAULT_URI HANDLING_UNTRUSTED_INPUT
  87.   ^.+/httpd(|2|2-prefork)$  = DEFAULT_URI HANDLING_UNTRUSTED_INPUT
  88.  
  89. [defaulthat]
  90.   ^.+/apache(|2|2-prefork)$ = DEFAULT_URI
  91.   ^.+/httpd(|2|2-prefork)$  = DEFAULT_URI
  92.  
  93. [globs]
  94.   # /foo/bar/lib/libbaz.so -> /foo/bar/lib/lib*
  95.   /lib/lib[^\/]+so[^\/]*$           = /lib/lib*so*
  96.  
  97.   # strip kernel version numbers from kernel module accesses
  98.   ^/lib/modules/[^\/]+\/            = /lib/modules/*/
  99.  
  100.   # strip pid numbers from /proc accesses
  101.   ^/proc/\d+/                       = /proc/*/
  102.  
  103.   # if it looks like a home directory, glob out the username
  104.   ^/home/[^\/]+                     = /home/*
  105.  
  106.   # if they use any perl modules, grant access to all
  107.   ^/usr/lib/perl5/.+$               = /usr/lib/perl5/**
  108.  
  109.   # locale foo
  110.   ^/usr/lib/locale/.+$              = /usr/lib/locale/**
  111.   ^/usr/share/locale/.+$            = /usr/share/locale/**
  112.  
  113.   # timezone fun
  114.   ^/usr/share/zoneinfo/.+$          = /usr/share/zoneinfo/**
  115.  
  116.   # /foobar/fonts/baz -> /foobar/fonts/**
  117.   /fonts/.+$                        = /fonts/**
  118.  
  119.   # turn /foo/bar/baz.8907234 into /foo/bar/baz.*
  120.   # BUGBUG - this one looked weird because it would suggest a glob for
  121.   # BUGBUG - libfoo.so.5.6.0 that looks like libfoo.so.5.6.*
  122.   # \.\d+$                            = .*
  123.  
  124.   # some various /etc/security poo -- dunno about these ones...
  125.   ^/etc/security/_[^\/]+$           = /etc/security/*
  126.   ^/lib/security/pam_filter/[^\/]+$ = /lib/security/pam_filter/*
  127.   ^/lib/security/pam_[^\/]+\.so$    = /lib/security/pam_*.so
  128.  
  129.   ^/etc/pam.d/[^\/]+$               = /etc/pam.d/*
  130.   ^/etc/profile.d/[^\/]+\.sh$       = /etc/profile.d/*.sh
  131.  
  132.